package top.italks.webviewdemo;

import android.content.Intent;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import butterknife.ButterKnife;
import butterknife.OnClick;
import top.italks.webviewdemo.ui.AndroidCallHtmlActivity;
import top.italks.webviewdemo.ui.HtmlCallAndroidActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.htmlCallAndroid
        , R.id.androidCallHtml
    })
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.htmlCallAndroid:
                startActivity(new Intent(this, HtmlCallAndroidActivity.class));
                break;
            case R.id.androidCallHtml:
                startActivity(new Intent(this, AndroidCallHtmlActivity.class));

                break;
        }
    }
}
